<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	{js:jquery}
	{js:validate}
	{js:dialog}
	{js:artTemplate}
	{js:form}
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<link href="{webroot:public/css/twitter-bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet">
</head>

<body>
<div class="container">
	<table class="table table-bordered">
		<colgroup>
			<col width="200px" />
			<col />
			<col width="180px" />
			<col width="150px" />
			<col width="150px" />
			<col width="250px" />
		</colgroup>

		<thead>
			<tr>
				<th>房间名称</th>
				<th>描述</th>
				<th>主题模板</th>
				<th>封面图片</th>
				<th>审核状态</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
			{query: name=aliyun_live order=id desc}
			{set:$data = JSON::decode($item['content'])}
			<tr>
				<td>{$data['room_name']}</td>
				<td title="{$data['room_desc']}">{echo:IString::substr($data['room_desc'],28)}</td>
				<td>{$data['room_style']}</td>
				<td><a href="{$data['room_img']}" target="_blank">查看</a></td>
				<td>
					{if:$item['status'] == 1}
					<font color="green">通过</font>
					{else:}
					<font color="red">审核中</font>
					{/if}
				</td>
				<td>
					{if:$item['status'] == 1}
					<button type="button" class="btn btn-danger" onclick="window.location.href='{url:/plugins/list_seller_edit/id/$item['id']/status/0}';">禁用</button>
					{else:}
					<button type="button" class="btn btn-success" onclick="window.location.href='{url:/plugins/list_seller_edit/id/$item['id']/status/1}';">通过</button>
					{/if}
					<button type="button" class="btn btn-info" onclick="window.location.href='{url:/plugins/live_follows/seller_id/$item['id']}';">粉丝列表</button>
					<button type="button" class="btn btn-info" onclick="window.location.href='{url:/plugins/stream_publish_list/seller_id/$item['id']}';">直播记录</button>
				</td>
			</tr>
			{/query}
		</tbody>
	</table>
</div>
</body>
</html>